package com.sunther.document.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author csb
 * @description: TODO
 * @date 2023/5/24 10:12
 */
@TableName(value = "document_file_v1")
public class FileEntity extends BaseEntity{

    @TableId
    private String id;

    private String fileOrgId;

    @TableField(exist = false)
    private String fileOrgName;

    private String fileTraId;

    @TableField(exist = false)
    private String fileTraName;

    private String projectId;

    private String mark;

    private Integer fileState;

    @TableField(exist = false)
    private String fileStateText;

    private Integer systemLevel;

    private String systemId;

    @TableField(exist = false)
    private String systemName;

    private Integer transTo;

    @TableField(exist = false)
    private String transToText;

    private Integer uploaderOrg;

    @TableField(exist = false)
    private String uploaderOrgText;

    private Integer uploaderTra;

    @TableField(exist = false)
    private String uploaderTraText;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTimeTra;

    private String name;

    private String wordCount;

    /** 文件标签 */
    @TableField(exist = false)
    List<String> tagName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileOrgId() {
        return fileOrgId;
    }

    public void setFileOrgId(String fileOrgId) {
        this.fileOrgId = fileOrgId;
    }

    public String getFileTraId() {
        return fileTraId;
    }

    public void setFileTraId(String fileTraId) {
        this.fileTraId = fileTraId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Integer getFileState() {
        return fileState;
    }

    public void setFileState(Integer fileState) {
        this.fileState = fileState;
    }

    public Integer getSystemLevel() {
        return systemLevel;
    }

    public void setSystemLevel(Integer systemLevel) {
        this.systemLevel = systemLevel;
    }

    public Integer getTransTo() {
        return transTo;
    }

    public void setTransTo(Integer transTo) {
        this.transTo = transTo;
    }

    public Integer getUploaderOrg() {
        return uploaderOrg;
    }

    public void setUploaderOrg(Integer uploaderOrg) {
        this.uploaderOrg = uploaderOrg;
    }

    public Integer getUploaderTra() {
        return uploaderTra;
    }

    public void setUploaderTra(Integer uploaderTra) {
        this.uploaderTra = uploaderTra;
    }

    public Date getUploadTimeTra() {
        return uploadTimeTra;
    }

    public void setUploadTimeTra(Date uploadTimeTra) {
        this.uploadTimeTra = uploadTimeTra;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWordCount() {
        return wordCount;
    }

    public void setWordCount(String wordCount) {
        this.wordCount = wordCount;
    }

    public List<String> getTagName() {
        return tagName;
    }

    public void setTagName(List<String> tagName) {
        this.tagName = tagName;
    }

    public String getFileStateText() {
        return fileStateText;
    }

    public void setFileStateText(String fileStateText) {
        this.fileStateText = fileStateText;
    }

    public String getTransToText() {
        return transToText;
    }

    public void setTransToText(String transToText) {
        this.transToText = transToText;
    }

    public String getUploaderOrgText() {
        return uploaderOrgText;
    }

    public void setUploaderOrgText(String uploaderOrgText) {
        this.uploaderOrgText = uploaderOrgText;
    }

    public String getUploaderTraText() {
        return uploaderTraText;
    }

    public void setUploaderTraText(String uploaderTraText) {
        this.uploaderTraText = uploaderTraText;
    }

    public String getSystemId() {
        return systemId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getFileOrgName() {
        return fileOrgName;
    }

    public void setFileOrgName(String fileOrgName) {
        this.fileOrgName = fileOrgName;
    }

    public String getFileTraName() {
        return fileTraName;
    }

    public void setFileTraName(String fileTraName) {
        this.fileTraName = fileTraName;
    }
}
